export interface StandardItem {
  id: string;
  standardName: string;
  standardType: string;
  standardTypeValue: string;
  standardLevel: string;
  standardLevelValue: string;
  pid: string;
  weight: number;
  remark: string | null;
  hasChosen: boolean;
  children?: StandardItem[];
  expanded?: boolean; // 控制展开状态
}

export interface TreeNode {
  id: string;
  label: string;
  children?: TreeNode[];
  selected?: boolean;
  parentId?: string;
}

// 示例数据 (根据您提供的结构)
export const standards: StandardItem[] = [
  {
    id: "388",
    standardName: "交通运输类",
    standardType: "1",
    standardTypeValue: "基础",
    standardLevel: "0",
    standardLevelValue: "父级",
    pid: "0",
    weight: 0,
    remark: null,
    hasChosen: false,
    children: [
      {
        id: "389",
        standardName: "交通运输工程专业基础标准",
        standardType: "1",
        standardTypeValue: "基础",
        standardLevel: "1",
        standardLevelValue: "子级",
        pid: "388",
        weight: 0,
        remark: null,
        hasChosen: false,
        children: [
          {
            id: "390",
            standardName: "交通运输工程专业基础标准",
            standardType: "1",
            standardTypeValue: "基础",
            standardLevel: "1",
            standardLevelValue: "子级",
            pid: "388",
            weight: 0,
            remark: null,
            hasChosen: false,
          },
        ],
      },
    ],
  },
];
